package cn.com.ddapp.ddm.widget;

import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.webkit.WebView;

public class TouchWebView extends WebView {

	public TouchWebView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	@SuppressWarnings("deprecation")
	@Override
	public boolean onTouchEvent(MotionEvent event) {
		int action = event.getAction();
		switch (action) {
		case MotionEvent.ACTION_POINTER_2_DOWN:
			requestDisallowInterceptTouchEvent(true);
			break;

		default:
			break;
		}

		return super.onTouchEvent(event);
	}
	
//	public interface PlayFinish{          
//		void After();     
//		}  
//	PlayFinish df;     
//	public void setDf(PlayFinish playFinish) {          
//		this.df = playFinish;     
//		}    
//	public TouchWebView(Context context) {         
//		super(context);     
//		}     
//	//onDraw表示显示完毕     
//	@Override      
//	protected void onDraw(Canvas canvas) {     
//		super.onDraw(canvas);        
//		df.After();     
//		}
	  
	

}
